;(function ($){
	var String =  function(){
		var time;
		var initData = function(){
			//var now = new Date();
			//var h = now.getHours();
			//var m = now.getMinutes();
			//$("#time").append(h+":"+m);
		//	var time =1514438062428;
		//	var now = new Date().getTime();
		//	console.log(now);
		//	var get_time = time + 1800000;
		//	console.log(get_time);
		//	var hms = get_time % (24 * 60 * 60 * 1000);
		//	console.log(hms);
		//	now=toMS(hms / 1000);
		//	console.log(now);
        //
		//
        //
		//		}
		////分秒转换
		//var toMS = function(num){
		//	console.log(num);
		//	var time_m = Math.floor(num/60);
		//	console.log(time_m);
		//	var m = Math.floor(time_m%60);
		//	m= m >9? m:"0"+m;
		//	var h = Math.floor(time_m/60);
		//	h= h >9? h:"0"+h;
		//	return h+":"+m;
			if(!localStorage.getItem("hour")) {
				localStorage.setItem("hour",new Date().getHours());
				localStorage.setItem("min", new Date().getMinutes());
			}
			console.log(localStorage.getItem("min"));
			var now = new Date();
			var hour = now.getHours();
			var min = now.getMinutes();
			var ordermin =parseInt(localStorage.getItem("min"));
			var orderhour =parseInt(localStorage.getItem("hour"));
			console.log(ordermin);
			console.log(orderhour);
			var sendmin = 30+ordermin;
			var sendhour=0;
			if(sendmin>60){
				sendmin = sendmin%60;
				sendhour = parseInt(sendmin/60);
			}
			sendhour+=orderhour;
			console.log(sendhour+"+"+sendmin);
			$("#time").html(sendhour+":"+sendmin);
		}





		return{
			init:function(){
				time=$("#time");
				initData();
			}
		}
	}();
	String.init();
})(jQuery);
